package com.tools.app.util;

import org.apache.http.message.BasicNameValuePair;

import com.tools.app.R;

import android.app.Activity;
import android.content.Intent;

public class IntentUtil {
	public static void start_activity(Activity activity,Class<?> cls,BasicNameValuePair...name)
	{
		Intent intent=new Intent();
		intent.setClass(activity,cls);
		for(int i=0;i<name.length;i++)
		{
			intent.putExtra(name[i].getName(), name[i].getValue());
		}
		activity.startActivity(intent);
		activity.overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);
	}
	
//    IntentUtil.start_activity(DetailsActivity.this,
//            DetailsDiscussActivity.class, new BasicNameValuePair(
//            "discuss_list", responseEntity.getBar()
//            .getComment().getGet()),
//            new BasicNameValuePair("discuss", responseEntity.getBar()
//                    .getComment().getSubmit()), new BasicNameValuePair(
//            "title", mTitle));
}
